package ThreadTest;

public class TestDemo {
    public static void main(String[] args) throws InterruptedException {
        Object object = new Object();
        System.out.println("Hello object");
        synchronized (object) {
            object.wait();
        }
        System.out.println("object结束");
    }
}
